﻿using System.Windows.Forms;

namespace NoteHelper.BaseControl
{
    public class Helper4CyDateBox : IControlHelper
    {
        public object GetValue(Control control)
        {
            var ckb = (CyDateBox)control;
            return ckb.SeletedValue;
        }

        public void SetValue(Control control, object value)
        {
            var ckb = (CyDateBox)control;
            if (value == null)
            {
                ckb.Text = "";
            }
            else
            {
                ckb.Text = value.ToString();
            }
        }
    }
}
